package com.bci.pwtz.common.remote;

import java.io.Serializable;

public class BaseRequest implements Serializable
{
    /**  
     * @Fields serialVersionUID : TODO(用一句话描述这个变量表示什么) 
     */
    private static final long serialVersionUID = 629539684762762129L;
    /**
     * 密钥
     */
    protected String secretKey;
    /**
     * 票据
     */
    protected String token;
    /**
     * 时间戳yyyyMMddhhmmssfff
     */
    protected String timestamp;
    /**
     * 用户编号号
     */
    protected Long userId;
    /**
     * 当前页数
     */
    protected int page;
    /**
     * 每页显示记录数
     */
    protected int pageSize;
    
    public String getSecretKey()
    {
        return secretKey;
    }
    public void setSecretKey(String secretKey)
    {
        this.secretKey = secretKey;
    }
    public String getToken()
    {
        return token;
    }
    public void setToken(String token)
    {
        this.token = token;
    }
    public String getTimestamp()
    {
        return timestamp;
    }
    public void setTimestamp(String timestamp)
    {
        this.timestamp = timestamp;
    }
    /**
     * @return the userId
     */
    public Long getUserId()
    {
        return userId;
    }
    /**
     * @param userId the userId to set
     */
    public void setUserId(Long userId)
    {
        this.userId = userId;
    }
    public int getPage()
    {
        return page;
    }
    public void setPage(int page)
    {
        if(page<=0){
            this.page=1;
        }else{
            this.page = page;
        }
    }
    public int getPageSize()
    {
        return pageSize;
    }
    public void setPageSize(int pageSize)
    {
        if(pageSize<=0){
            this.pageSize=0;
        }else{
            this.pageSize = pageSize;
        }
    }
    
    
}
